using System;
using Microsoft.SPOT;
using IndianaJones.NETMF.Json;

namespace Dairy_Town
{
    public static class JsonConverter
    {
        private static Serializer serializer = null;

        public static string Serialize(object o)
        {
            if (serializer == null)
                serializer = new Serializer();

            return serializer.Serialize(o);
        }

        public static object Deserialize(string json)
        {
            if (serializer == null)
                serializer = new Serializer();

            return serializer.Deserialize(json);
        }
    }
}
